package com.breeze.components.core.util;

/**
 * @author breeze
 */
public class BitUtil {

  public static int getLow(int mod, int i) {
    return (mod << (32 - i)) >>> (32 - i);
  }

  public static int getHeight(int mod, int i) {
    // 先右移将低位抹掉
    return mod >>> i;
  }
}
